package com.icbc.springcloud.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@NoArgsConstructor//无参构造器
@Accessors//链式写法
public class Dept implements Serializable {
    private int deptno;
    private String dname;
    private String db_source;

    public Dept(String dname) {
        this.dname = dname;
    }
    /*
    * 链式写法
    *
    * dept dept=new dept（）；
    * dept.setdeptNo(11).setdeptNo(12).setdeptNo(13);
    *
    * */
}

